package com.xc.hotelmgr.datapusherali.service.mybatis.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.hotelmgr.datapusherali.mapper.OpHtlGroupMapper;
import com.xc.hotelmgr.datapusherali.pojo.mybatis.OpHtlGroup;
import com.xc.hotelmgr.datapusherali.service.mybatis.OpHtlGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OpHtlGroupServiceImpl extends ServiceImpl<OpHtlGroupMapper, OpHtlGroup> implements OpHtlGroupService {

    @Autowired
    private OpHtlGroupMapper opHtlGroupMapper;

    @Override
    public OpHtlGroup getRatePlan(int storeId, Long hotelId) {
        return opHtlGroupMapper.getRatePlan(storeId, hotelId);
    }

    @Override
    public List<OpHtlGroup> listAll() {
        return opHtlGroupMapper.listAll();
    }

    @Override
    public OpHtlGroup getById(Integer id) {
        return opHtlGroupMapper.getById(id);
    }

    @Override
    public int insert(OpHtlGroup opHtlGroup) {
        return opHtlGroupMapper.insert(opHtlGroup);
    }

    @Override
    public int insertIgnoreNull(OpHtlGroup opHtlGroup) {
        return opHtlGroupMapper.insertIgnoreNull(opHtlGroup);
    }

    @Override
    public int update(OpHtlGroup opHtlGroup) {
        return opHtlGroupMapper.update(opHtlGroup);
    }

    @Override
    public int updateIgnoreNull(OpHtlGroup opHtlGroup) {
        return opHtlGroupMapper.updateIgnoreNull(opHtlGroup);
    }

    @Override
    public int delete(OpHtlGroup opHtlGroup) {
        return opHtlGroupMapper.delete(opHtlGroup);
    }

    @Override
    public OpHtlGroup getDelRatePlan(Integer storeId, Long hotelId, Integer groupId) {
        return baseMapper.getDelRatePlan(storeId,hotelId,groupId);
    }
}
